from csst.msc.pipeline import do_one_exposure, CONFIG_PMO
for exposure_id in range(20, 151):
    dir_l0 = ("/share/simudata/CSSOSDataProductsSims/data/CSSTSimImage_C5/NGP_AstrometryON_shearOFF/"
              "MSC_{:07d}/").format(exposure_id)
    dir_l1 = "/share/L1Pipeline/batchtest20220701/MSC_{:07d}".format(exposure_id)
    CONFIG_PMO["dir_l0"] = dir_l0
    CONFIG_PMO["dir_l1"] = dir_l1
    do_one_exposure(runproc=(1, 1, 1, 1), **CONFIG_PMO)


# On Dandelion, run C3
from csst.msc.pipeline import do_one_exposure, CONFIG_CHAM
for exposure_id in range(20, 151):
    dir_l0 = ("/nfsdata/share/csst_simulation_data/Cycle-3-SimuData/multipleBandsImaging/CSST_shearOFF/"
              "MSC_{:07d}/").format(exposure_id)
    dir_l1 = "/nfsdata/users/cham/L1Test/batchtestC3_20220703/MSC_{:07d}".format(exposure_id)
    CONFIG_CHAM["dir_l0"] = dir_l0
    CONFIG_CHAM["dir_l1"] = dir_l1
    do_one_exposure(runproc=(1, 1, 1, 1), **CONFIG_CHAM)


# [2022-08-18] dandelion, C5.2
from csst.msc.pipeline import do_one_exposure, CONFIG_CHAM
for exposure_id in range(20, 151):
    dir_l0 = ("/nfsdata/share/csst_simulation_data/Cycle-5-SimuData/multipleBandsImaging/CSST_shearOFF/"
              "MSC_{:07d}/").format(exposure_id)
    dir_l1 = "/nfsdata/users/cham/L1Test/batchtestC5_20220822/MSC_{:07d}".format(exposure_id)
    CONFIG_CHAM["dir_l0"] = dir_l0
    CONFIG_CHAM["dir_l1"] = dir_l1
    do_one_exposure(runproc=(1, 1, 1, 1), **CONFIG_CHAM)

# [2022-08-18] PMO, C5.2
from csst.msc.pipeline import do_one_exposure, CONFIG_PMO
for exposure_id in range(20, 151):
    dir_l0 = ("/share/simudata/CSSOSDataProductsSims/data/CSSTSimImage_C5/NGP_AstrometryON_shearOFF/"
              "MSC_{:07d}/").format(exposure_id)
    dir_l1 = "/share/L1Pipeline/batchtest20220818/MSC_{:07d}".format(exposure_id)
    CONFIG_PMO["dir_l0"] = dir_l0
    CONFIG_PMO["dir_l1"] = dir_l1
    do_one_exposure(runproc=(1, 1, 1, 1), dumpfile=None, **CONFIG_PMO)

